package com.zzhua.cglib.callback;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

/**
 * @description
 * @Author: zzhua
 * @Date 2021/12/17
 */
public class Callback_0  implements MethodInterceptor {

    @Override
    public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
        System.out.println("enter callback_0");
        Object o = proxy.invokeSuper(obj, args);
        System.out.println("leave callback_0");
        return o;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
